<!DOCTYPE html>
    <html lang="en">
    <head>
        <meta charset="UTF-8">
        <title>Title</title>
        <link href="/Public/css/bootstrap.min.css" rel="stylesheet">
        <script src="/Public/js/jquery-1.11.1.min.js"></script>
        <script src="/Public/js/bootstrap.min.js"></script>
        <style>
            html,body,ul,ul li{margin: 0;padding: 0;border:0;}
            ul{list-style: none;}
            ul a{display: block;text-decoration: none;}
            ul a:hover{text-decoration: underline;}

            .a{
                background:url("/test/xiangmu/images/xinwen.png") center no-repeat;
                height: 998px;
                position: relative;
            }
            .b{
                position: absolute;
                top: 50%;
                left: 50%;
                margin-top: -500px;
                margin-left: -30px;
            }
        </style>
</head>
<body>
    <div class="a">
        <div class="b"><h2 style=" font-family: MS PGothic;">新闻</h2></div>
        <div class="panel panel-primary" style="width: 50%;position: absolute;top:50%;left: 50%;margin-left: -370px;margin-top: -370px">
            <div class="panel-heading" >
                <span>新闻</span>
                <span class="pull-right"><a href="{:U('/Xm/login')}" style="color: white">登录管理</a></span>
                <span class="pull-right"><a href="{:U('/Xm/tianjia')}" style="color: white;padding-right: 50px">添加新闻</a></span>
                <span class="pull-right"><a href="{:U('/Xm/wenjian')}" style="color: white;padding-right: 50px">文件管理</a></span>
            </div>

            <table class="table table-bordered  table-striped  table-hover">
                <foreach name="data" item="v">
                    <tr style="height: 70px">
                        <td><img src="/{$v.url}" alt="" style="width: 50px;height: 50px"><span style="font-size: 20px">标题：</span><a href="{:U('/Xm/xiangxi')}?title={$v.title}&content={$v.content}" style="color: black;font-size: 15px">{$v.title}</a></td>
                    </tr>
                </foreach>
            </table>

        </div>
    </div>
</body>
</html>